import request from '@/utils/request'

// 查询学霸天梯榜列表
export function listPoints_board(query) {
  return request({
    url: '/study/points_board/list',
    method: 'get',
    params: query
  })
}

// 查询学霸天梯榜详细
export function getPoints_board(id) {
  return request({
    url: '/study/points_board/' + id,
    method: 'get'
  })
}

// 新增学霸天梯榜
export function addPoints_board(data) {
  return request({
    url: '/study/points_board',
    method: 'post',
    data: data
  })
}

// 修改学霸天梯榜
export function updatePoints_board(data) {
  return request({
    url: '/study/points_board',
    method: 'put',
    data: data
  })
}

// 删除学霸天梯榜
export function delPoints_board(id) {
  return request({
    url: '/study/points_board/' + id,
    method: 'delete'
  })
}
